<div class="M-head">
            <div>
                <div>
                    <a href="{:url('Index/index')}">
                        <img src="__STATIC__/index/img/head/m_logo.png" alt="">
                    </a>
                    <div class="M-click-location"> {if condition="!empty($cur_city)"}{$cur_city}{else /}选择城市{/if}
                    </div>
                </div>
                <!-- 登录 -->
                <div class="M-enter">
                    <div>
                        <a href="{:url('MyCart/my_cart')}">
                            <span class="iconfont icon-gouwuche"></span>
                            <span>{$cart_num}</span>
                        </a>
                    </div>
                    {if condition="empty($realname)"}
                    <div>
                        <a href="{:url('Login/register')}">注册</a>
                    </div>
                    {/if}
                    <div>
                        {if condition="empty($realname)"}
                            <a href="{:url('Login/loginin')}">登录</a>
                        {else /}
                            <a href="{:url('User/index')}">{$realname}</a>
                        {/if}
                    </div>
                </div>
                <!-- 退出 -->
                <div class="M-esc" style="display: none;">
                    <div>
                        <a href="{:url('MyCart/my_cart')}">
                            <span class="iconfont icon-gouwuche"></span>
                            <span>{$cart_num}</span>
                        </a>
                    </div>

                    <div>
                        <a href="{:url('Login/logout')}">退出</a>
                    </div>

                    <div>
                        <p>
                            <a href="{:url('User/index')}">{$Think.session._user_uid_.realname}</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>